#!/bin/bash

apt install tmux -y
ln -s tmux/tmux.conf ~/.tmux.conf
tmux source-file ~/.tmux.conf

apt install zsh -y
ln -s zsh/zshrc ~/.zshrc
source ~/.zshrc

wget https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
mv nvim.appimage /usr/bin/nvim

sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

mkdir -p ~/.config/nvim
ln -s nvim/init.vim ~/.config/nvim/init.vim
ln -s nvim/coc-settings.json ~/.config/nvim/coc-settings.json
nvim -c 'PlugInstall'
